package cn.edu.jxyy.p4;

import cn.edu.jxyy.p4.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AnnotationTest {
    public static void main(String[] args){
        ApplicationContext applicationContext=new
                ClassPathXmlApplicationContext("applicationContext4.xml");
        UserController usercontroller=(UserController)
                applicationContext.getBean("userController");
        usercontroller.save();
    }
}
